/**
 * 
 */
package de.cbf.cam.dsa.facet.armor.persister.db4o.server.preferences;

import org.eclipse.jface.preference.IPreferenceStore;

import de.cbf.cam.dsa.facet.armor.persister.db4o.server.Launcher_FacetArmor_Db4oServer;
import de.cbf.cam.dsa.facet.armor.persister.db4o.server.act.ActivatorFacetArmor_Db4oServer;
import de.cbf.util.db.db4o.exceptions.ServerNotStartedException;
import de.cbf.util.db.db4o.preferences.AbstractDB4OServerPreferencePage;

/**
 * @author Nebelritter
 *
 */
public class PrefPage_FacetArmor_Db4oServer extends AbstractDB4OServerPreferencePage {

	public static final String PAGE_DESCRIPTION = "Facet Armor Preferences for DB4O Server";
	
	@Override
	protected IPreferenceStore getPreferenceStoreFromActivator() {
		return ActivatorFacetArmor_Db4oServer.getDefault().getPreferenceStore();		
	}

	@Override
	protected String getPageDescription() {		
		return PAGE_DESCRIPTION;
	}

	@Override
	protected void startDBServer() throws ServerNotStartedException {
		Launcher_FacetArmor_Db4oServer.getInstance().launchServer();			
	}

	@Override
	protected void stopDBServer() {
		Launcher_FacetArmor_Db4oServer.getInstance().stopServer();		
	}

}
